projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ecd337
)
entry: handle NULL cursor when updating cursors
author
Christian Hergert
<chergert@redhat.com>
Tue, 27 Sep 2016 21:12:43 +0000
(14:12 -0700)
committer
Christian Hergert
<chergert@redhat.com>
Tue, 27 Sep 2016 21:12:43 +0000
(14:12 -0700)
If we got a NULL cursor from gdk_cursor_new_from_name(), we need
to handle that when unreffing.
gtk/gtkentry.c
patch
|
blob
|
history
diff --git
a/gtk/gtkentry.c
b/gtk/gtkentry.c
index cfe79a707689949c860e7d68f927c25b07dfebd4..79588a13a360ccd9965e28e487d2e623e1f57681 100644
(file)
--- a/
gtk/gtkentry.c
+++ b/
gtk/gtkentry.c
@@
-3099,7
+3099,7
@@
update_cursors (GtkWidget *widget)
display = gtk_widget_get_display (widget);
cursor = gdk_cursor_new_from_name (display, "text");
gdk_window_set_cursor (icon_info->window, cursor);
- g_
object_unref (
cursor);
+ g_
clear_object (&
cursor);
}
else
{